import request from '@/utils/request'

// 查询嵌套题题目列表
export function listNestQues(query) {
  return request({
    url: '/exam/nestQues/list',
    method: 'get',
    params: query
  })
}

// 查询嵌套题题目详细
export function getNestQues(nestId) {
  return request({
    url: '/exam/nestQues/' + nestId,
    method: 'get'
  })
}

// 新增嵌套题题目
export function addNestQues(data) {
  return request({
    url: '/exam/nestQues',
    method: 'post',
    data: data
  })
}

// 修改嵌套题题目
export function updateNestQues(data) {
  return request({
    url: '/exam/nestQues',
    method: 'put',
    data: data
  })
}

// 删除嵌套题题目
export function delNestQues(nestId) {
  return request({
    url: '/exam/nestQues/' + nestId,
    method: 'delete'
  })
}

// 导出嵌套题题目
export function exportNestQues(query) {
  return request({
    url: '/exam/nestQues/export',
    method: 'get',
    params: query
  })
}